package com.woniuxy.cloud.procurementassembly.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.sql.Blob;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author 周川雄
 * @since 2022-02-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("undo_log")
@ApiModel(value="UndoLog对象", description="")
public class UndoLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "记录ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "分支事务ID")
    @TableField("branch_id")
    private Long branchId;

    @ApiModelProperty(value = "全局事务ID")
    @TableField("xid")
    private String xid;

    @TableField("context")
    private String context;

    @ApiModelProperty(value = "回滚信息")
    @TableField("rollback_info")
    private Blob rollbackInfo;

    @ApiModelProperty(value = "log状态")
    @TableField("log_status")
    private Integer logStatus;

    @TableField("log_created")
    private LocalDateTime logCreated;

    @TableField("log_modified")
    private LocalDateTime logModified;

    @ApiModelProperty(value = "扩展信息")
    @TableField("ext")
    private String ext;


}
